<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CIHeadStart URL Helpers
 *
 * @author Casey McLaughlin
 * @package CIHeadStart
 * @link http://code.google.com/p/ciheadstart
 */

// --------------------------------------------------------------------

function base_url($file_path = FALSE)
{
		$ci =& get_instance();
		$ci->load->helper('string');
		$bu = $ci->config->slash_item('base_url');

		if ($file_path === FALSE)
			return reduce_double_slashes($bu);
		elseif ( ! ends_with($bu, '/') && ! begins_with($file_path, '/'))
			return reduce_double_slashes($bu . '/' . $file_path);
		else
			return reduce_double_slashes($bu . $file_path);
}

/* End of file MY_url_helper.php */
/* Location: ./app/helpers/MY_url_helper.php */